package com.jiaming.employee.department.bean.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author dragon
 * @create 2021-05-14 16:45
 */
@ApiModel(value = "部门信息")
@Data
public class Department {
    @ApiModelProperty(value = "部门ID",required = false,example = "1")
    private Integer id;
    @ApiModelProperty(value = "部门名",required = true,example = "技术部")
    @NotEmpty(message = "部门名不能为空")
    private String name;
    @ApiModelProperty(value = "部门工资",required = true,example = "15000")
    @NotNull(message = "部门工资不能为空")
    private Integer salary;
}
